import {myRequest} from "../utils/request.js"

// 玩法介绍
export function gameDescription(data){
	return myRequest({
		url:"phone_information/gameDescription",
		method: "post",
		data:data||{}
	})
}
//查询当前用户是否存在进行中的手机
export function inProgressPhone(data){
	return myRequest({
		url:"member_phone/inProgressPhone",
		method: "post",
		data:data||{}
	})
}
//选择手机
export function choosePhone(data){
	return myRequest({
		url:"member_phone/choosePhone",
		method: "post",
		data:data||{}
	})
}
//首页 - 分类列表
export function installmentindex(data){
	return myRequest({
		url:"phone_installment/index",
		method: "post",
		data:data||{}
	})
}
//首页 - 分类列表
export function installmentinfo(data){
	return myRequest({
		url:"phone_installment/info",
		method: "post",
		data:data||{}
	})
}
//首页 
export function phoneIndexInfo(data){
	return myRequest({
		url:"member_phone/index",
		method: "post",
		data:data||{}
	})
}
//vip等级
export function vipDescription(data){
	return myRequest({
		url:"phone_information/vipDescription",
		method: "post",
		data:data||{}
	})
}
//开盲盒
export function drawBlindBox(data) {
	return myRequest({
		url: 'phone_box_record/drawBlindBox',
		method: "POST",
		data:data||{}
	})
}
//盲盒获奖记录
export function blindBoxRecord(data) {
	return myRequest({
		url: 'phone_box_record/index',
		method: "POST",
		data:data||{}
	})
}
//排行榜
export function rankingList(data) {
	return myRequest({
		url: 'member_phone/rankingList',
		method: "POST",
		data:data||{}
	})
}
//当月完拼队列
export function currentMonthList(data) {
	return myRequest({
		url: 'member_phone_card/currentMonthList',
		method: "POST",
		data:data||{}
	})
}
//拼车-我的账户-购买配件记录
export function buyAccessoryList(data){
	return myRequest({
		url:'phone_transaction/buyAccessoryList',
		method:'POST',
		data:data||{}
	})
}
//拼车-我的账户-交易余额提现
export function phoneBalanceWithdrawal (data) {
	return myRequest({
		url:"dao_balance_log/phoneBalanceWithdrawal",
		method: "post",
		data:data||{}
	})
}
//上次开奖记录
export function lastLotteryRecord(data) {
	return myRequest({
		url: 'phone_installment_lottery/lastLotteryRecord',
		method: "POST",
		data:data||{}
	})
}

// ---------------------------------------------------------------------------------
export function phonenav(data){
	return myRequest({
		url:"member_phone/phone",
		method: "post",
		data:data||{}
	})
}
export function phoneindex(data){
	return myRequest({
		url:"member_phone/index",
		method: "post",
		data:data||{}
	})
}
export function phonedetail(data){
	return myRequest({
		url:"member_phone/detail",
		method: "post",
		data:data||{}
	})
}
export function buyAccessoryGroup(data){
	return myRequest({
		url:"phone_transaction/buyAccessoryGroup",
		method: "post",
		data:data||{}
	})
}
export function sellAccessoryGroup(data){
	return myRequest({
		url:"phone_transaction/sellAccessoryGroup",
		method: "post",
		data:data||{}
	})
}
export function hallList(data){
	return myRequest({
		url:"phone_transaction/hallList",
		method: "post",
		data:data||{}
	})
}
export function orderList(data){
	return myRequest({
		url:"phone_transaction/orderList",
		method: "post",
		data:data||{}
	})
}
export function phonepayType(data){
	return myRequest({
		url:"phone_transaction/payType",
		method: "post",
		data:data||{}
	})
}
export function createOrder(data){
	return myRequest({
		url:"phone_transaction/createOrder",
		method: "post",
		data:data||{}
	})
}
export function myAccount(data){
	return myRequest({
		url:"member_phone/myAccount",
		method: "post",
		data:data||{}
	})
}
export function phonecardindex(data){
	return myRequest({
		url:"member_phone_card/index",
		method: "post",
		data:data||{}
	})
}
export function lotteryNumber(data){
	return myRequest({
		url:"member_phone_card/lotteryNumber",
		method: "post",
		data:data||{}
	})
}
export function phoneConfig(data){
	return myRequest({
		url:"member_phone/phoneConfig",
		method: "post",
		data:data||{}
	})
}
export function phoneAgainIndex(data){
	return myRequest({
		url:"member_phone/phoneAgainIndex",
		method: "post",
		data:data||{}
	})
}
export function phoneAgain(data){
	return myRequest({
		url:"member_phone/phoneAgain",
		method: "post",
		data:data||{}
	})
}
export function phoneinstallmentlottery(data){
	return myRequest({
		url:"phone_installment_lottery/index",
		method: "post",
		data:data||{}
	})
}
export function forSale(data){
	return myRequest({
		url:"member_phone_item/forSale",
		method: "post",
		data:data||{}
	})
}
